package com.geyue.core.model;

import com.geyue.common.base.model.Model;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * 直播间
 * Created by Lyon on 2017/4/20.
 */
@Data
@Table(name = "live")
public class Live extends Model {

    private Integer id;
    //教师ID
    @Column(name = "teacher_id")
    private Integer teacherId;
    //直播间名称 推流名称
    private String stream;
    //标题
    private String title;
    //封面图片
    @Column(name = "img_url")
    private String imgUrl;
    //是否开播
    @Column(name = "is_open")
    private String isOpen;
    //观看人数
    private int total;

    @Column(name = "add_time")
    private Date addTime;
}
